import { SET_TOKEN, SET_NAME, SET_SEMESTER } from "./mutations-type";
export default {
    [SET_TOKEN](state, token) {
        state.token = token;
    },
    [SET_SEMESTER](state, semester) {
        state.semester = semester
    },
    [SET_NAME](state, name) {
        if (Array.isArray(name)) {
            state.name = name[0];
        } else {
            state.name = name;
        }
    }
};